# demo05_list.py
list01 = [10, 1.23, "hello", [1, 2]]
print(list01, type(list01), len(list01))
print(list01[0], list01[-1])
# 获取前n个元素：[:n]
# 获取后n个元素: [-n:]
print(list01[:3], list01[-2:])
print([1, 2] in list01, 11 not in list01)